//
//  UILabel+FSLLabel.m
//  比柚UI测试项目
//
//  Created by 我演示 on 2019/10/21.
//  Copyright © 2019 Jerry-Fu. All rights reserved.
//

#import "UILabel+FSLLabel.h"

@implementation UILabel (FSLLabel)
- (instancetype)initWithTextString:(NSString *)textString andTextColor:(UIColor *)textColor andTextFont:(CGFloat )textFont {
    
    if (self = [super init]) {
        self.text = textString ;
        self.textColor = textColor ;
        self.font = [UIFont systemFontOfSize:textFont];
    }
    return  self;
    
}

-(instancetype)initWithString:(NSString *)textString andTextColor:(UIColor *)textColor andFontString:(NSString *)fontString andFontFloat: (CGFloat)fontFloat {
    if (self = [super init]) {
        self.text = textString ;
        self.textColor = textColor ;
        self.font = [UIFont fontWithName:fontString size:fontFloat];
        
    }
    return  self;
}

   
    // 字体加重
//    SourceHanSansCN-Bold [UILabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:20]];

@end
